﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Simple.Common.Extensions;
using Simple.Repository.Models.Attendance;

namespace Simple.Services.System.Recipes.Models
{
    public class AddPlanRecipesDto
    {
        public Guid? Id { get; set; }

        /// <summary>
        /// 计划食谱名称	
        /// </summary>
        public string PlanName { get; set; }

        /// <summary>
        /// 食谱周期
        /// </summary>
        public string PlanRange { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StarTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        public List<PlanDayRecipesDto> PlanDayRecipesList { get; set; }

    }

    public class PlanDayRecipesDto
    {
        /// <summary>
        /// 每周计划食谱id
        /// </summary>
        public Guid? PlanWeekRecipesId { get; set; }

        /// <summary>
        /// 日期（：2023-01-01）
        /// </summary>
        public string Date { get; set; }

        /// <summary>
        /// 日期（：星期一）
        /// </summary>
        public string DateStr { get; set; }

        /// <summary>
        /// 就餐人数
        /// </summary>
        public int Number { get; set; }

        public List<PlanDayRecipesDetailDto> PlanDayRecipesDetails { get; set; }

        public NutritionalAnalysisDto NutritionalAnalysisDto { get; set; }

    }

    public class PlanDayRecipesDetailDto
    {

        /// <summary>
        /// 类型
        /// </summary>
        public EnumRecipes Type { get; set; }

        /// <summary>
        /// 食谱id
        /// </summary>
        public List<Guid> RecipesIdList { get; set; }
    }

    public class NutritionalAnalysisDto
    {

        /// <summary>
        /// 能量
        /// </summary>
        public decimal Heat { get; set; }

        /// <summary>
        /// 蛋白质
        /// </summary>
        public decimal Protein { get; set; }

        /// <summary>
        /// 脂肪
        /// </summary>
        public decimal Fat { get; set; }

        /// <summary>
        /// 碳水化合物
        /// </summary>
        public decimal Carbohydrate { get; set; }

        /// <summary>
        /// 钙
        /// </summary>
        public decimal Calcium { get; set; }

        /// <summary>
        /// 铁
        /// </summary>
        public decimal Iron { get; set; }

        /// <summary>
        /// 锌
        /// </summary>
        public decimal Zinc { get; set; }

        /// <summary>
        /// VitA
        /// </summary>
        public decimal VitA { get; set; }

        /// <summary>
        /// VitB1
        /// </summary>
        public decimal VitB1 { get; set; }

        /// <summary>
        /// VitB2
        /// </summary>
        public decimal VitB2 { get; set; }

        /// <summary>
        /// VitC
        /// </summary>
        public decimal VitC { get; set; }


    }



}
